[campsite-support] templates and translations
  • What is the correct syntax for displaying a link to the same article
    in a different language? This is my template now:

    {{ include file="head.tpl" }}
    {{ include file="header.tpl" }}


    {{ if $campsite->submit_comment_action->is_error }}

    {{ $campsite->submit_comment_action->error_message }}


    {{ /if }}
    {{ if $campsite->language->english_name == "Chinese" }}
    {{ if $campsite->article->translated_to == "en" }}
    {{ local }}
    {{ set_language name="english" }}

    {{ /local }}
    {{ /if }}
    {{ else }}
    {{ if $campsite->article->translated_to == "zh" }}
    {{ local }}
    {{ set_language name="chinese" }}

    {{ /local }}
    {{ /if }}
    {{ /if }}

    {{ $campsite->article->name }}


    {{
    $campsite->article->publish_date|camp_date_format:"%W, %e %M %Y."
    }}


    {{ $campsite->article->body }}




    {{ list_article_comments }}

    {{ $campsite->comment->subject }}

    {{ $campsite->comment->submit_date }}

    {{ $campsite->comment->content }}


    {{ /list_article_comments }}

    Post comment


    {{ if $campsite->user->logged_in }}
    {{ article_comment_form template="article.tpl" submit_button="Submit" }}
    Subject: {{ camp_edit object="articlecomment" attribute="subject" }}

    {{ camp_edit object="articlecomment" attribute="content" }}

    {{ }}
    {{ else }}

    You must be logged in to post comments


    {{ /if }}

    {{ include file="right.tpl" }}
    {{ include file="footer.tpl" }}


    but it doesn't show the link "这篇文章的中文版" or "This article in English"
    on the translated articles.


    /Sebastian O